package kattas;

public class PairOfNumbers {

	private int arg1;
	private int arg2;
	
	public static PairOfNumbers twoNumbers(int one, int second){
		PairOfNumbers nos = new PairOfNumbers();
		nos.arg1 = one;
		nos.arg2 = second;
		return nos;
	}

	public int getArg1() {
		return arg1;
	}

	public int getArg2() {
		return arg2;
	}

	@Override
	public String toString() {
		return "PairOfNumbers [arg1=" + arg1 + ", arg2=" + arg2 + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + arg1;
		result = prime * result + arg2;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PairOfNumbers other = (PairOfNumbers) obj;
		if (arg1 != other.arg1)
			return false;
		if (arg2 != other.arg2)
			return false;
		return true;
	}
	
}
